<?php

namespace addon\lian\api\controller;

use app\api\controller\BaseApi;
use addon\lian\model\Config as ConfigModel;
use app\model\goods\Goods;
use app\model\system\Document;

/**
 * 链动2+1相关配置
 */
class Config extends BaseApi
{

    /**
     * 提现配置
     */
    public function withdraw()
    {
        $config = new ConfigModel();
        $res = $config->getFenxiaoWithdrawConfig($this->site_id);
        return $this->response($this->success($res[ 'data' ][ 'value' ]));
    }

    /**
     * 文字设置
     * @return false|string
     */
    public function words()
    {
        $config = new ConfigModel();
        $res = $config->getFenxiaoWordsConfig($this->site_id);
        return $this->response($this->success($res[ 'data' ][ 'value' ]));
    }

    

    /**
     * 链动2+1基本设置
     * @return false|string
     */
    public function basics()
    {
        $config = new ConfigModel();
        $res = $config->getLianBasicsConfig($this->site_id);
        return $this->response($this->success($res[ 'data' ][ 'value' ]));
    }

}